<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 5.0.2">
  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/images/logo.svg" color="#222">
  <meta name="baidu-site-verification" content="https://f-s2.gitee.io">

<link rel="stylesheet" href="/css/main.css">

<link rel="stylesheet" href="https://fonts.loli.net/css?family=Noto Serif SC:300,300italic,400,400italic,700,700italic&display=swap&subset=latin,latin-ext">
<link rel="stylesheet" href="/lib/font-awesome/css/all.min.css">
  <link rel="stylesheet" href="//cdn.jsdelivr.net/gh/fancyapps/fancybox@3/dist/jquery.fancybox.min.css">
  <link rel="stylesheet" href="/lib/pace/pace-theme-minimal.min.css">
  <script src="/lib/pace/pace.min.js"></script>

<script id="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"f-s2.gitee.io","root":"/","scheme":"Gemini","version":"7.8.0","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":true,"show_result":true,"style":"mac"},"back2top":{"enable":true,"sidebar":false,"scrollpercent":false},"bookmark":{"enable":true,"color":"#222","save":"auto"},"fancybox":true,"mediumzoom":false,"lazyload":true,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":true,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},"path":"search.xml"};
  </script>

  <meta name="description" content="生活中经常需要用到到搜索引擎，稍微了解一些技巧能够帮助我们更快的搜索出结果，何乐而不为呢">
<meta property="og:type" content="article">
<meta property="og:title" content="搜索技巧">
<meta property="og:url" content="https://f-s2.gitee.io/posts/982ff584/index.html">
<meta property="og:site_name" content="啊哈的博客">
<meta property="og:description" content="生活中经常需要用到到搜索引擎，稍微了解一些技巧能够帮助我们更快的搜索出结果，何乐而不为呢">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2020-08-22T08:35:29.000Z">
<meta property="article:modified_time" content="2020-08-22T10:40:08.322Z">
<meta property="article:author" content="啊哈">
<meta property="article:tag" content="google的使用">
<meta property="article:tag" content="百度的使用">
<meta name="twitter:card" content="summary">

<link rel="canonical" href="https://f-s2.gitee.io/posts/982ff584/">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true,
    lang   : 'zh-CN'
  };
</script>
<meta name="baidu-site-verification" content="lVgyvVPq1W" />
<meta name="google-site-verification" content="rqlofUhkddFIhgDUDahrzMyAJHnPoEtdJ7F6BB_yv5E" />


  <script src="/live2d-widget/autoload.js"></script>



<link rel="stylesheet" type="text/css" href="/css/injector.css" />
  <title>搜索技巧 | 啊哈的博客</title>
  






  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

<link rel="alternate" href="/atom.xml" title="啊哈的博客" type="application/atom+xml">
</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container use-motion">
    <div class="headband"></div>

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/" class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <h1 class="site-title">啊哈的博客</h1>
      <span class="logo-line-after"><i></i></span>
    </a>
      <p class="site-subtitle" itemprop="description">就喜欢瞎折腾</p>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
        <i class="fa fa-search fa-fw fa-lg"></i>
    </div>
  </div>
</div>




<nav class="site-nav">
  <ul id="menu" class="main-menu menu">
        <li class="menu-item menu-item-home">

    <a href="/" rel="section"><i class="fa fa-home fa-fw"></i>首页</a>

  </li>
        <li class="menu-item menu-item-about">

    <a href="/about/" rel="section"><i class="fa fa-user fa-fw"></i>关于</a>

  </li>
        <li class="menu-item menu-item-tags">

    <a href="/tags/" rel="section"><i class="fa fa-tags fa-fw"></i>标签<span class="badge">10</span></a>

  </li>
        <li class="menu-item menu-item-categories">

    <a href="/categories/" rel="section"><i class="fa fa-th fa-fw"></i>分类<span class="badge">9</span></a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>归档<span class="badge">6</span></a>

  </li>
      <li class="menu-item menu-item-search">
        <a role="button" class="popup-trigger"><i class="fa fa-search fa-fw"></i>搜索
        </a>
      </li>
  </ul>
</nav>



  <div class="search-pop-overlay">
    <div class="popup search-popup">
        <div class="search-header">
  <span class="search-icon">
    <i class="fa fa-search"></i>
  </span>
  <div class="search-input-container">
    <input autocomplete="off" autocapitalize="off"
           placeholder="搜索..." spellcheck="false"
           type="search" class="search-input">
  </div>
  <span class="popup-btn-close">
    <i class="fa fa-times-circle"></i>
  </span>
</div>
<div id="search-result">
  <div id="no-result">
    <i class="fa fa-spinner fa-pulse fa-5x fa-fw"></i>
  </div>
</div>

    </div>
  </div>

</div>
    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>
  <div class="reading-progress-bar"></div>
  <a role="button" class="book-mark-link book-mark-link-fixed"></a>

  <a href="https://github.com/f-s2" class="github-corner" title="欢迎访问" aria-label="欢迎访问" rel="noopener external nofollow noreferrer" target="_blank"><svg width="80" height="80" viewBox="0 0 250 250" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content post posts-expand">
            

    
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="https://f-s2.gitee.io/posts/982ff584/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/uploads/avatar.jpg">
      <meta itemprop="name" content="啊哈">
      <meta itemprop="description" content="无法舍弃任何东西的人，也就无法改变任何事">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="啊哈的博客">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          搜索技巧
        </h1>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-calendar"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>
              

              <time title="创建时间：2020-08-22 16:35:29 / 修改时间：18:40:08" itemprop="dateCreated datePublished" datetime="2020-08-22T16:35:29+08:00">2020-08-22</time>
            </span>
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-folder"></i>
              </span>
              <span class="post-meta-item-text">分类于</span>
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/%E6%8A%80%E8%83%BD%E7%82%B9/" itemprop="url" rel="index"><span itemprop="name">技能点</span></a>
                </span>
                  ，
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/%E6%8A%80%E8%83%BD%E7%82%B9/%E6%90%9C%E7%B4%A2%E5%B7%A5%E5%85%B7%E4%BD%BF%E7%94%A8/" itemprop="url" rel="index"><span itemprop="name">搜索工具使用</span></a>
                </span>
            </span>

          
            <span id="/posts/982ff584/" class="post-meta-item leancloud_visitors" data-flag-title="搜索技巧" title="阅读次数">
              <span class="post-meta-item-icon">
                <i class="fa fa-eye"></i>
              </span>
              <span class="post-meta-item-text">阅读次数：</span>
              <span class="leancloud-visitors-count"></span>
            </span>
            <span class="post-meta-item" title="阅读次数" id="busuanzi_container_page_pv" style="display: none;">
              <span class="post-meta-item-icon">
                <i class="fa fa-eye"></i>
              </span>
              <span class="post-meta-item-text">阅读次数：</span>
              <span id="busuanzi_value_page_pv"></span>
            </span>
  
  <span class="post-meta-item">
    
      <span class="post-meta-item-icon">
        <i class="far fa-comment"></i>
      </span>
      <span class="post-meta-item-text">Valine：</span>
    
    <a title="valine" href="/posts/982ff584/#valine-comments" itemprop="discussionUrl">
      <span class="post-comments-count valine-comment-count" data-xid="/posts/982ff584/" itemprop="commentCount"></span>
    </a>
  </span>
  
  <br>
            <span class="post-meta-item" title="本文字数">
              <span class="post-meta-item-icon">
                <i class="far fa-file-word"></i>
              </span>
                <span class="post-meta-item-text">本文字数：</span>
              <span>1.7k</span>
            </span>
            <span class="post-meta-item" title="阅读时长">
              <span class="post-meta-item-icon">
                <i class="far fa-clock"></i>
              </span>
                <span class="post-meta-item-text">阅读时长 &asymp;</span>
              <span>2 分钟</span>
            </span>

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
        <p>生活中经常需要用到到搜索引擎，稍微了解一些技巧能够帮助我们更快的搜索出结果，何乐而不为呢</p>
<a id="more"></a>

<h2 id="Google"><a href="#Google" class="headerlink" title="Google"></a>Google</h2><h3 id="基本使用"><a href="#基本使用" class="headerlink" title="基本使用"></a>基本使用</h3><table>
<thead>
<tr>
<th align="center">序号</th>
<th align="left">语法</th>
<th align="left">语法说明</th>
<th align="left">示例</th>
<th align="left">示例说明</th>
</tr>
</thead>
<tbody><tr>
<td align="center">1</td>
<td align="left"><strong>+</strong></td>
<td align="left">同AND，搜索包含多个关键词的结果</td>
<td align="left">搜索 + 引擎</td>
<td align="left">搜索包含【搜索】和【引擎】两个词的页面</td>
</tr>
<tr>
<td align="center">2</td>
<td align="left"><strong>OR</strong></td>
<td align="left">或者</td>
<td align="left">搜索 OR 引擎</td>
<td align="left">搜索包含【搜索】或【引擎】两个词的页面</td>
</tr>
<tr>
<td align="center">3</td>
<td align="left"><strong>-</strong></td>
<td align="left">减号，不包含减号后面词的页面</td>
<td align="left">搜索引擎 -百度</td>
<td align="left">搜索不包括【百度】的【搜索引擎】的页面</td>
</tr>
<tr>
<td align="center">4</td>
<td align="left"><strong>“”</strong></td>
<td align="left">双引号，精确匹配</td>
<td align="left">“搜索引擎”</td>
<td align="left">精确匹配【搜索引擎】这个关键词的页面</td>
</tr>
<tr>
<td align="center">5</td>
<td align="left">*****</td>
<td align="left">星号，通配符，模糊搜索，星号代替某个字</td>
<td align="left">搜*引擎</td>
<td align="left">星号可以为任何字</td>
</tr>
<tr>
<td align="center">6</td>
<td align="left"><strong>..</strong></td>
<td align="left">两个点，在两个数字之间加上.. 在数字范围内执行搜索</td>
<td align="left">camera 500..500..1000</td>
<td align="left">搜索500−1000−1000的camera</td>
</tr>
</tbody></table>
<h3 id="高级命令"><a href="#高级命令" class="headerlink" title="高级命令"></a>高级命令</h3><table>
<thead>
<tr>
<th align="left">序号</th>
<th align="left">语法</th>
<th align="left">语法说明</th>
<th align="left">示例</th>
<th align="left">示例说明</th>
</tr>
</thead>
<tbody><tr>
<td align="left">1</td>
<td align="left"><strong>filetype</strong></td>
<td align="left">搜索某一种文件类型的资源</td>
<td align="left">C++ filetype:pdf</td>
<td align="left">搜索类型为pdf的C++网页资源</td>
</tr>
<tr>
<td align="left">2</td>
<td align="left"><strong>site</strong></td>
<td align="left">在指定站点搜索</td>
<td align="left">C++ site:<a target="_blank" rel="noopener external nofollow noreferrer" href="https://www.zhihu.com/">https://www.zhihu.com</a></td>
<td align="left">在知乎中搜索和C++相关的网页</td>
</tr>
<tr>
<td align="left">4</td>
<td align="left"><strong>info</strong></td>
<td align="left">在网址前加info:，获取网站详情</td>
<td align="left">info:github.com</td>
<td align="left">搜索github网站详情</td>
</tr>
<tr>
<td align="left">5</td>
<td align="left"><strong>related</strong></td>
<td align="left">搜索与某个网站有关联的页面</td>
<td align="left">related:sina.com</td>
<td align="left">和新浪网网站结构内容相似的一些其它网站</td>
</tr>
<tr>
<td align="left">6</td>
<td align="left"><strong>link</strong></td>
<td align="left">返回所有链接到某个URL地址的网页</td>
<td align="left">link:<a target="_blank" rel="noopener external nofollow noreferrer" href="http://www.csdn.net/">www.csdn.net</a></td>
<td align="left">搜索所有含指向【<a target="_blank" rel="noopener external nofollow noreferrer" href="http://www.csdn.net】链接的网页/">www.csdn.net】链接的网页</a></td>
</tr>
<tr>
<td align="left">7</td>
<td align="left"><strong>inurl</strong></td>
<td align="left">搜索查询词出现在url 中的页面</td>
<td align="left">inurl:搜索引擎</td>
<td align="left">搜索链接url中有【搜索引擎】的网页</td>
</tr>
<tr>
<td align="left">8</td>
<td align="left"><strong>intitle</strong></td>
<td align="left">搜索查询词出现在页面标题(title)中的页面，支持中文和英文</td>
<td align="left">intitle:搜索引擎</td>
<td align="left">搜索页面标题中有【搜索引擎】的网页</td>
</tr>
<tr>
<td align="left">9</td>
<td align="left"><strong>intext</strong></td>
<td align="left">搜索查询词出现在页面正文(title)中的页面，支持中文和英文</td>
<td align="left">SEO intext:搜索引擎</td>
<td align="left">在正文包含【搜索引擎】的网页中搜索【SEO】</td>
</tr>
<tr>
<td align="left">10</td>
<td align="left"><strong>inanchor</strong></td>
<td align="left">搜索链接锚文字(即链接显示的文字)中包含搜索词的页面</td>
<td align="left">inanchor:前端</td>
<td align="left">搜索链接锚文字中包含【前端】的页面</td>
</tr>
<tr>
<td align="left">11</td>
<td align="left"><strong>allinurl</strong></td>
<td align="left">即all+inurl 页面url中包含多个关键词的页面</td>
<td align="left">allinurl:SEO 搜索引擎优化</td>
<td align="left">相当于 ：inurl:SEO inurl:搜索引擎优化</td>
</tr>
<tr>
<td align="left">12</td>
<td align="left"><strong>allintitle</strong></td>
<td align="left">即all+intitle 页面标题中包含多个关键词的页面</td>
<td align="left">allintitle:SEO 搜索引擎优化</td>
<td align="left">相当于：intitle:SEO intitle:搜索引擎优化</td>
</tr>
<tr>
<td align="left">13</td>
<td align="left"><strong>allintext</strong></td>
<td align="left">即all+inanchor 页面正文包含多个关键词的页面</td>
<td align="left">allintext:SEO 搜索引擎优化</td>
<td align="left">相当于：intext:SEO intext:搜索引擎优化</td>
</tr>
<tr>
<td align="left">14</td>
<td align="left"><strong>allinanchor</strong></td>
<td align="left">即all+inanchor 页面链接锚文字包含多个关键词的页面</td>
<td align="left">allinanchor:SEO 搜索引擎优化</td>
<td align="left">相当于：inanchor:SEO inanchor:搜索引擎优化</td>
</tr>
<tr>
<td align="left">15</td>
<td align="left"><strong>weather</strong></td>
<td align="left">weather/time/sunrise/sundown+城市名，返回城市的天气/时间/日出时间/日落时间</td>
<td align="left">weather:beijing</td>
<td align="left">显示北京的天气</td>
</tr>
<tr>
<td align="left">16</td>
<td align="left"><strong>music</strong></td>
<td align="left">或者用songs，歌手名字+music/songs</td>
<td align="left">周杰伦 music</td>
<td align="left">返回周杰伦的各首歌曲</td>
</tr>
</tbody></table>
<h3 id="组合命令"><a href="#组合命令" class="headerlink" title="组合命令"></a>组合命令</h3><p>如：</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">allintitle:机器学习 入门 site:zhihu.com</span><br></pre></td></tr></table></figure>

<p>可以搜索到知乎上所有标题中有机器学习和入门的网页</p>
<h3 id="注意"><a href="#注意" class="headerlink" title="注意"></a>注意</h3><ul>
<li>冒号均为英文</li>
<li>冒号后面没有空格</li>
<li>命令前要用空格隔开，如:<em>C++ filetype:pdf，filetype前面有空格；</em></li>
</ul>
<h3 id="参考"><a href="#参考" class="headerlink" title="参考"></a>参考</h3><p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://evanli.github.io/blog/2019/01/26/advanced-google-search-engine-command/">谷歌搜索引擎高级搜索、命令大全表格总结(完整示例及说明)</a></p>
<h2 id="百度"><a href="#百度" class="headerlink" title="百度"></a>百度</h2><p>百度的语法与Google大同小异参考Google的即可</p>
<h2 id="比较懒的可以用快捷方式"><a href="#比较懒的可以用快捷方式" class="headerlink" title="比较懒的可以用快捷方式"></a>比较懒的可以用快捷方式</h2><h3 id="Google-1"><a href="#Google-1" class="headerlink" title="Google"></a>Google</h3><ul>
<li>搜索框下面一点点的位置 — 设置 — 高级搜索</li>
<li>访问该网址<a target="_blank" rel="noopener external nofollow noreferrer" href="https://www.google.com/advanced_search">https://www.google.com/advanced_search</a></li>
</ul>
<h3 id="百度-1"><a href="#百度-1" class="headerlink" title="百度"></a>百度</h3><ul>
<li><p>百度搜索导航栏右上角 — 设置 — 高级搜索</p>
</li>
<li><p>访问该网址<a target="_blank" rel="noopener external nofollow noreferrer" href="http://www.baidu.com/gaoji/advanced.html">http://www.baidu.com/gaoji/advanced.html</a></p>
</li>
</ul>

    </div>

    
    
    
        <div class="reward-container">
  <div>虽然觉得没人会点，可是万一呢0.0</div>
  <button onclick="var qr = document.getElementById('qr'); qr.style.display = (qr.style.display === 'none') ? 'block' : 'none';">
    <i class="fa fa-qrcode fa-2x" style="line-height:35px;"></i>
  </button>
  <div id="qr" style="display: none;">
      
      <div style="display: inline-block;">
        <img src="/images/wechatpay.png" alt="啊哈 微信支付">
        <p>微信支付</p>
      </div>
      
      <div style="display: inline-block;">
        <img src="/images/alipay.png" alt="啊哈 支付宝">
        <p>支付宝</p>
      </div>

  </div>
</div>

        

<div>
<ul class="post-copyright">
  <li class="post-copyright-author">
    <strong>本文作者： </strong>啊哈
  </li>
  <li class="post-copyright-link">
    <strong>本文链接：</strong>
    <a href="https://f-s2.gitee.io/posts/982ff584/" title="搜索技巧">https://f-s2.gitee.io/posts/982ff584/</a>
  </li>
  <li class="post-copyright-license">
    <strong>版权声明： </strong>本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/zh-CN" rel="noopener external nofollow noreferrer" target="_blank"><i class="fab fa-fw fa-creative-commons"></i>BY-NC-SA</a> 许可协议。转载请注明出处！
  </li>
</ul>
</div>


      <footer class="post-footer">
          
          <div class="post-tags">
              <a href="/tags/google%E7%9A%84%E4%BD%BF%E7%94%A8/" rel="tag"><i class="fa fa-tag"></i> google的使用</a>
              <a href="/tags/%E7%99%BE%E5%BA%A6%E7%9A%84%E4%BD%BF%E7%94%A8/" rel="tag"><i class="fa fa-tag"></i> 百度的使用</a>
          </div>

        


        
    <div class="post-nav">
      <div class="post-nav-item">
    <a href="/posts/70d90ccb/" rel="prev" title="next配置(进阶版)">
      <i class="fa fa-chevron-left"></i> next配置(进阶版)
    </a></div>
      <div class="post-nav-item"></div>
    </div>
      </footer>
    
  </article>
  
  
  



          </div>
          
    <div class="comments" id="valine-comments"></div>

<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
          <div class="post-toc motion-element"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#Google"><span class="nav-number">1.</span> <span class="nav-text">Google</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8"><span class="nav-number">1.1.</span> <span class="nav-text">基本使用</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E9%AB%98%E7%BA%A7%E5%91%BD%E4%BB%A4"><span class="nav-number">1.2.</span> <span class="nav-text">高级命令</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E7%BB%84%E5%90%88%E5%91%BD%E4%BB%A4"><span class="nav-number">1.3.</span> <span class="nav-text">组合命令</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E6%B3%A8%E6%84%8F"><span class="nav-number">1.4.</span> <span class="nav-text">注意</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%8F%82%E8%80%83"><span class="nav-number">1.5.</span> <span class="nav-text">参考</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E7%99%BE%E5%BA%A6"><span class="nav-number">2.</span> <span class="nav-text">百度</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E6%AF%94%E8%BE%83%E6%87%92%E7%9A%84%E5%8F%AF%E4%BB%A5%E7%94%A8%E5%BF%AB%E6%8D%B7%E6%96%B9%E5%BC%8F"><span class="nav-number">3.</span> <span class="nav-text">比较懒的可以用快捷方式</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#Google-1"><span class="nav-number">3.1.</span> <span class="nav-text">Google</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E7%99%BE%E5%BA%A6-1"><span class="nav-number">3.2.</span> <span class="nav-text">百度</span></a></li></ol></li></ol></div>
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
    <img class="site-author-image" itemprop="image" alt="啊哈"
      src="/uploads/avatar.jpg">
  <p class="site-author-name" itemprop="name">啊哈</p>
  <div class="site-description" itemprop="description">无法舍弃任何东西的人，也就无法改变任何事</div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/archives/">
        
          <span class="site-state-item-count">6</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/categories/">
          
        <span class="site-state-item-count">9</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
            <a href="/tags/">
          
        <span class="site-state-item-count">10</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>
  <div class="links-of-author motion-element">
      <span class="links-of-author-item">
        <a href="https://github.com/f-s2" title="GitHub → https:&#x2F;&#x2F;github.com&#x2F;f-s2" rel="noopener external nofollow noreferrer" target="_blank"><i class="fab fa-github fa-fw"></i>GitHub</a>
      </span>
  </div>
  <div class="cc-license motion-element" itemprop="license">
    <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/zh-CN" class="cc-opacity" rel="noopener external nofollow noreferrer" target="_blank"><img src="/images/cc-by-nc-sa.svg" alt="Creative Commons"></a>
  </div>



    <div class="links-of-blogroll motion-element links-of-blogroll-block">
      <div class="links-of-blogroll-title">
        <!-- modify icon to fire by szw -->
        <i class="fa fa-history fa-" aria-hidden="true"></i>
        近期文章
      </div>
      <ul class="links-of-blogroll-list">
        
        
          <li>
            <a href="/posts/982ff584/" title="搜索技巧" target="_blank">搜索技巧</a>
          </li>
        
          <li>
            <a href="/posts/70d90ccb/" title="next配置(进阶版)" target="_blank">next配置(进阶版)</a>
          </li>
        
          <li>
            <a href="/posts/2e8f040/" title="next踩坑记录" target="_blank">next踩坑记录</a>
          </li>
        
          <li>
            <a href="/posts/c8cd8177/" title="看板娘的添加" target="_blank">看板娘的添加</a>
          </li>
        
          <li>
            <a href="/posts/fdb29852/" title="next的配置记录" target="_blank">next的配置记录</a>
          </li>
        
      </ul>
    </div>



      </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

        

<div class="copyright">
  
  &copy; 
  <span itemprop="copyrightYear">2020</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">啊哈</span>
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item-icon">
      <i class="fa fa-chart-area"></i>
    </span>
      <span class="post-meta-item-text">站点总字数：</span>
    <span title="站点总字数">29k</span>
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item-icon">
      <i class="fa fa-coffee"></i>
    </span>
      <span class="post-meta-item-text">站点阅读时长 &asymp;</span>
    <span title="站点阅读时长">27 分钟</span>
</div>

        
<div class="busuanzi-count">
  <script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
    <span class="post-meta-item" id="busuanzi_container_site_uv" style="display: none;">
      <span class="post-meta-item-icon">
        <i class="fa fa-user"></i>
      </span>
      <span class="site-uv" title="总访客量">
        <span id="busuanzi_value_site_uv"></span>
      </span>
    </span>
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item" id="busuanzi_container_site_pv" style="display: none;">
      <span class="post-meta-item-icon">
        <i class="fa fa-eye"></i>
      </span>
      <span class="site-pv" title="总访问量">
        <span id="busuanzi_value_site_pv"></span>
      </span>
    </span>
</div>






<script>
  (function() {
    function leancloudSelector(url) {
      url = encodeURI(url);
      return document.getElementById(url).querySelector('.leancloud-visitors-count');
    }

    function addCount(Counter) {
      var visitors = document.querySelector('.leancloud_visitors');
      var url = decodeURI(visitors.id);
      var title = visitors.dataset.flagTitle;

      Counter('get', '/classes/Counter?where=' + encodeURIComponent(JSON.stringify({ url })))
        .then(response => response.json())
        .then(({ results }) => {
          if (results.length > 0) {
            var counter = results[0];
            leancloudSelector(url).innerText = counter.time + 1;
            Counter('put', '/classes/Counter/' + counter.objectId, { time: { '__op': 'Increment', 'amount': 1 } })
              .catch(error => {
                console.error('Failed to save visitor count', error);
              });
          } else {
              leancloudSelector(url).innerText = 'Counter not initialized! More info at console err msg.';
              console.error('ATTENTION! LeanCloud counter has security bug, see how to solve it here: https://github.com/theme-next/hexo-leancloud-counter-security. \n However, you can still use LeanCloud without security, by setting `security` option to `false`.');
            
          }
        })
        .catch(error => {
          console.error('LeanCloud Counter Error', error);
        });
    }

    function showTime(Counter) {
      var visitors = document.querySelectorAll('.leancloud_visitors');
      var entries = [...visitors].map(element => {
        return decodeURI(element.id);
      });

      Counter('get', '/classes/Counter?where=' + encodeURIComponent(JSON.stringify({ url: { '$in': entries } })))
        .then(response => response.json())
        .then(({ results }) => {
          for (let url of entries) {
            let target = results.find(item => item.url === url);
            leancloudSelector(url).innerText = target ? target.time : 0;
          }
        })
        .catch(error => {
          console.error('LeanCloud Counter Error', error);
        });
    }

    let { app_id, app_key, server_url } = {"enable":true,"app_id":null,"app_key":null,"server_url":null,"security":true};
    function fetchData(api_server) {
      var Counter = (method, url, data) => {
        return fetch(`${api_server}/1.1${url}`, {
          method,
          headers: {
            'X-LC-Id'     : app_id,
            'X-LC-Key'    : app_key,
            'Content-Type': 'application/json',
          },
          body: JSON.stringify(data)
        });
      };
      if (CONFIG.page.isPost) {
        if (CONFIG.hostname !== location.hostname) return;
        addCount(Counter);
      } else if (document.querySelectorAll('.post-title-link').length >= 1) {
        showTime(Counter);
      }
    }

    let api_server = app_id.slice(-9) !== '-MdYXbMMI' ? server_url : `https://${app_id.slice(0, 8).toLowerCase()}.api.lncldglobal.com`;

    if (api_server) {
      fetchData(api_server);
    } else {
      fetch('https://app-router.leancloud.cn/2/route?appId=' + app_id)
        .then(response => response.json())
        .then(({ api_server }) => {
          fetchData('https://' + api_server);
        });
    }
  })();
</script>


      </div>
    </footer>
  </div>

  
  <script src="/lib/anime.min.js"></script>
  <script src="//cdn.jsdelivr.net/npm/jquery@3/dist/jquery.min.js"></script>
  <script src="//cdn.jsdelivr.net/gh/fancyapps/fancybox@3/dist/jquery.fancybox.min.js"></script>
  <script src="//cdn.jsdelivr.net/npm/lozad@1/dist/lozad.min.js"></script>
  <script src="/lib/velocity/velocity.min.js"></script>
  <script src="/lib/velocity/velocity.ui.min.js"></script>

<script src="/js/utils.js"></script>

<script src="/js/motion.js"></script>


<script src="/js/schemes/pisces.js"></script>


<script src="/js/next-boot.js"></script>

<script src="/js/bookmark.js"></script>




  
  <script>
    (function(){
      var canonicalURL, curProtocol;
      //Get the <link> tag
      var x=document.getElementsByTagName("link");
		//Find the last canonical URL
		if(x.length > 0){
			for (i=0;i<x.length;i++){
				if(x[i].rel.toLowerCase() == 'canonical' && x[i].href){
					canonicalURL=x[i].href;
				}
			}
		}
    //Get protocol
	    if (!canonicalURL){
	    	curProtocol = window.location.protocol.split(':')[0];
	    }
	    else{
	    	curProtocol = canonicalURL.split(':')[0];
	    }
      //Get current URL if the canonical URL does not exist
	    if (!canonicalURL) canonicalURL = window.location.href;
	    //Assign script content. Replace current URL with the canonical URL
      !function(){var e=/([http|https]:\/\/[a-zA-Z0-9\_\.]+\.baidu\.com)/gi,r=canonicalURL,t=document.referrer;if(!e.test(r)){var n=(String(curProtocol).toLowerCase() === 'https')?"https://sp0.baidu.com/9_Q4simg2RQJ8t7jm9iCKT-xh_/s.gif":"//api.share.baidu.com/s.gif";t?(n+="?r="+encodeURIComponent(document.referrer),r&&(n+="&l="+r)):r&&(n+="?l="+r);var i=new Image;i.src=n}}(window);})();
  </script>




  
<script src="/js/local-search.js"></script>













  

  
  <script src="//cdn.jsdelivr.net/npm/quicklink@1/dist/quicklink.umd.js"></script>
  <script>
      window.addEventListener('load', () => {
      quicklink({
        timeout : 3000,
        priority: true,
        ignores : [uri => uri.includes('#'),uri => uri === 'https://f-s2.gitee.io/posts/982ff584/',]
      });
      });
  </script>


<script>
NexT.utils.loadComments(document.querySelector('#valine-comments'), () => {
  NexT.utils.getScript('//unpkg.com/valine/dist/Valine.min.js', () => {
    var GUEST = ['nick', 'mail', 'link'];
    var guest = 'nick,mail,link';
    guest = guest.split(',').filter(item => {
      return GUEST.includes(item);
    });
    new Valine({
      el         : '#valine-comments',
      verify     : false,
      notify     : false,
      appId      : '1UDkCIjzxRCxC9uuGFxXfIYD-gzGzoHsz',
      appKey     : 'AcegyxGdwHH6WatL663tUhMC',
      placeholder: "来搞点事情吧",
      avatar     : 'mm',
      meta       : guest,
      pageSize   : '10' || 10,
      visitor    : false,
      lang       : 'zh-cn' || 'zh-cn',
      path       : location.pathname,
      recordIP   : false,
      serverURLs : ''
    });
  }, window.Valine);
});
</script>
<!-- 页面点击小红心 -->


<!-- 页面点击烟花 -->

      <script type="text/javascript" src="/js/fireworks.js"></script>
<div class="moon-menu">
  <div class="moon-menu-items">
    
    <div class="moon-menu-item" onclick="back2bottom()">
      <i class='fa fa-chevron-down'></i>    </div>
    
    <div class="moon-menu-item" onclick="back2top()">
      <i class='fa fa-chevron-up'></i>    </div>
    
  </div>
  <div class="moon-menu-button">
    <svg class="moon-menu-bg">
      <circle class="moon-menu-cricle" cx="50%" cy="50%" r="44%"></circle>
      <circle class="moon-menu-border" cx="50%" cy="50%" r="48%"></circle>
    </svg>
    <div class="moon-menu-content">
      <div class="moon-menu-icon"><i class='fas fa-ellipsis-v'></i></div>
      <div class="moon-menu-text"></div>
    </div>
  </div>
</div><script src="/js/injector.js"></script>
</body>
</html>
